Component({
  properties: {
    item: {
      type: Object,
      value: {}
    },
    index: {
      type: [String, Number],
      value: ''
    },
    key: {
      type: [String, Number],
      value: ''
    },
    status: {
      type: String,
      value: 'temp'
    }
  },
  data: {},
  methods: {
    delTempFile ({ currentTarget: { dataset: { key, item, index } } }) {
      this.triggerEvent('delTempFile', { currentTarget: { dataset: { key, item, index } } })
    },
    again ({ currentTarget: { dataset: { key, item, index } } }) {
      this.triggerEvent('again', { currentTarget: { dataset: { key, item, index } } })
    },
    delFile ({ currentTarget: { dataset: { key, item, index } } }) {
      this.triggerEvent('delFile', { currentTarget: { dataset: { key, item, index } } })
    }
  }
})